package src.lab02.test13;

/**
 * Created by MECHREV on 2017/10/25.
 */
public class School extends ComputerAverage {
    double []data;
    School(){
    }
    School(double []data){
        this.data=data;
    }
    @Override
    double averge(double[] data) {
        double sum=0;
        double averge;
        for(int i=0;i<data.length;i++){
            sum+=data[i];
        }
        averge=sum/data.length;
        return averge;
    }
}
